package com.xdcplus.web.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 质量检查excel类型
 *
 * @author Rong.Jia
 * @date 2023/10/08
 */
@Getter
@AllArgsConstructor
public enum QaExcelType {

    // 质量检查excel类型
    EMPTY(-1, ""),
    ACETATE_MIST(1, "电池片醋酸盐雾点检"),
    AGING_TENSION(2, "老化拉力点检"),
    BOILING_TEST(3, "水煮测试"),
    CELL_STRENGTH(4, "强度测试"),
    INIT_TENSION(5, "老化拉力点检"),
    SILK_SCREEN_TENSION(6, "丝印拉力"),
    LID(7,"LID测试"),
    DH(8,"电池片DH"),
    TC(9,"电池片TC"),
    UV(10,"电池片UV"),



    ;


    private final Integer value;
    private final String desc;

    public static QaExcelType valueOf(Integer value) {
        return Arrays.stream(QaExcelType.values())
                .filter(a -> a.getValue().equals(value))
                .findAny().orElse(EMPTY);
    }










}
